from django.conf.urls.defaults import *

urlpatterns = patterns('invites.views',
    #form in temaplte has reverse to this url_name, so its important.
    (r'^$', 'index'), #now its simple redirect to send_invite page
    url(r'^send/$', 'send', name='send_invite', kwargs={'site_name':'example.com', 'redirect':'/'}),
    
    #Invite.get_absolute_url returning reverse to this url_name, so this url_name is important too.
    url(r'^accept/(?P<key>\w{5,8})/$', 'accept', name='accept_invite'), 
)
